package edu.scau.misp.backend_module.mapper;

import edu.scau.misp.backend_module.domain.OrderDishAddition;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDishAdditionMapper {
//    OrderDishAddition
    /**
     *通过ID获取数据
     * @param orderDishAdditionId
     * @return
     */
    public OrderDishAddition getOrderDishAdditionById(Long orderDishAdditionId);

    /**
     *查询所有数据
     * @return
     */

    public List<OrderDishAddition> listAllOrderDishAddition();

    /**
     *根据实体信息返回符合要求的数据
     * @param orderDishAddition
     * @return
     */


    public List<OrderDishAddition> selectOrderDishAdditionList(OrderDishAddition orderDishAddition);

    /**
     *添加数据
     * @param orderDishAddition
     * @return
     */
    public int insertOrderDishAddition(OrderDishAddition orderDishAddition);

    /**
     *修改数据
     * @param orderDishAddition
     * @return
     */
    public int updateOrderDishAddition(OrderDishAddition orderDishAddition);

    /**
     *删除数据
     * @param orderDishAdditionId
     * @return
     */
    public int deleteOrderDishAdditionById(Long orderDishAdditionId);

}
